﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Data;
using CM_Classes;

namespace WCF_CM
{
    [ServiceContract]
    public interface IService1
    {
        //Interface for User Class

        [OperationContract]
        string AddUser(int EmpID, string FirstName, string LastName, string UserName, string Password, bool UserDisabled);

        [OperationContract]
        string SaveUser(int EmpID, string FirstName, string LastName, string UserName, string Password, bool UserDisabled);



        [OperationContract]
        string SaveGroup(string GroupName, int GroupPriority, string GroupDescription, bool GroupDisabled, string SubGroupOf);

        [OperationContract]
        string DeleteUser(int EmpID);
        //Interface for Group Class

        [OperationContract]
        string AddGroup(string GroupName, int GroupPriority, string GroupDescription, bool GroupDisabled, string SubGroupOf);



        // Interface for Attrib calss

        [OperationContract]
        string AddAttrib(string attribName, string dataType, bool attribDisabled, string attribDescription);

        [OperationContract]
        string UpdateAttrib(int attribID, string attribName, string dataType, bool attribDisabled, string attribDescription);

        [OperationContract]
        string DeleteAttrib(int attribID);

        [OperationContract]
        string SearchAttrib(string attribName);

       // Interface for UserGroup

        [OperationContract]
        List<UserGroup> GetUserGroups();

        [OperationContract]
        List<GroupAttrib> GetGroupAttribs();

        [OperationContract]
        List<User> GetUsers();
    }
}
